<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("area_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<%@ include file="../commonPage/message.jsp"%>
	</head>
	<body>
		<div class="main">
			<s:form action="uploadAreaAction!findAll.action" method="post"
				theme="simple">
				<p class="pEdit">
					<input name="set" type="button" class="bAdd" value="上传" onclick="window.location.href='/SCMDB/uploadAreaAction!uploadArea.action'" />
			    </p>
				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th class="number">
								<s:property value='%{getText("area_th1")}' />
							</th>
							<th>
								<s:property value='%{getText("area_th2")}' />
							</th>
							<th>
								<s:property value='%{getText("area_th3")}' />
							</th>
							<th>
								<s:property value='%{getText("area_th4")}' />
							</th>
							<th>
								<s:property value='%{getText("area_th5")}' />
							</th>
							<th>
								<s:property value='%{getText("area_th6")}' />
							</th>
						</tr>
					</thead>

					<tbody>
						<s:iterator id="pageBean" status="u"
							value="#session.areaBean.list">
							<tr>
								<td class="number">
									${entity.index+u.index}
								</td>
								<td>
									${pageBean.name}
								</td>
								<td>
									<s:property value="#session.areaListType.get(#pageBean.type)"/>
								</td>
								<td>
									${pageBean.readers}
								</td>
								<td>
									${pageBean.empCount}
								</td>
								<td>
									${pageBean.timeLength}
								</td>
							</tr>
						</s:iterator>
						<tr>
							<td colspan="9" class="turnPage">
								<jsp:include flush="true" page="../commonPage/page.jsp">
									<jsp:param name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>

